<?php
	#Include the connect.php file
	include($_SERVER['DOCUMENT_ROOT'].'/CTAN/models/NhomNhac.php');
	$nhomnhac = new NhomNhac();
        $result = $nhomnhac->danhSachNghesiChuaCoNhom();
        //$danhsachnhom;
        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
            $danhsachnghesi[] = array(
                'ma_nghe_si' => $row['ma_nghe_si'],
                'nghe_danh' => $row['nghe_danh']
            );
        }
        $nhomnhac->closeConnection();
        echo json_encode($danhsachnghesi, JSON_UNESCAPED_UNICODE);
?>